A Space-Economic Representation of Transitive Closures in Relational Databases

نویسنده

  • Yangjun Chen
چکیده

A composite object represented as a directed graph (digraph for short) is an important data structure that requires efficient support in CAD/CAM, CASE, office systems, software management, web databases, and document databases. It is cumbersome to handle such objects in relational database systems when they involve ancestor-descendant relationships (or say, recursive relationships). In this paper, we present a new encoding method to label a digraph, which reduces the footprints of all previous strategies. This method is based on a tree labeling method and the concept of branchings that are used in graph theory for finding the shortest connection networks. A branching is a subgraph of a given digraph that is in fact a forest, but covers all the nodes of the graph. On the one hand, the proposed encoding scheme achieves the smallest space requirements among all previously published strategies for recognizing recursive relationships. On the other hand, it leads to a new algorithm for computing transitive closures for DAGs (directed acyclic graph) in O(e⋅b) time and O(n⋅b) space, where n represents the number of the nodes of a DAG, e the numbers of the edges, and b the DAG’s breadth. In addition, this method can be extended to cyclic digraphs and is especially suitable for a relational environment.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On the Cost of Transitive Closures in Relational Databases

We consider the question of taking transitive closures on top of pure relational systems (Sybase and Ingres in this case). We developed three kinds of transitive closure programs , one using a stored procedure to simulate a built-in transitive closure operator, one using the C language embedded with SQL statements to simulate the iterated execution of the transitive closure operation, and one u...

متن کامل

A New Algorithm for Transitive Closures and Computation of Recursion in relational Databases

In this paper, we propose a new algorithm for computing recursive closures. The main idea behind this algorithm is tree labeling and graph decomposition, based on which the transitive closure of a directed graph can be computed in O(e⋅dmax⋅dout) time and in O(n⋅dmax⋅dout) space, where n is the number of the nodes of the graph, e is the numbers of the edges, dmax is the maximal indegree of the n...

متن کامل

Linearization and Completeness Results for Terminating Transitive Closure Queries on Spatial Databases

We study queries to spatial databases, where spatial data are modelled as semialgebraic sets, using the relational calculus with polynomial inequalities as a basic query language. We work with the extension of the relational calculus with terminating transitive closures. The main result is that this language can express the linearization of semi-algebraic databases. We also show that the sublan...

متن کامل

General Transitive Closures and Aggregate Functions

General transitive closures are a convenient operation for process ing recursive structures with relational languages because they are easy to understand e ciently to implement and expressive enough to support a broad range of practical applications To further extend the expressiveness of general transitive closures we study the use of aggregate functions together with general transitive closur...

متن کامل

Multi-lingual Semantic Matching with OrdPath in Relational Systems

The volume of information in natural languages in electronic format is increasing exponentially. The demographics of users of information management systems are becoming increasingly multilingual. Together these trends create a requirement for information management systems to support processing of information in multiple natural languages seamlessly. Database systems, the backbones of informat...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2003